#include <QApplication>
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QObject>
int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QWidget w;
	QLabel label("helloworld", &w);
	QPushButton btn("退出", &w);

	w.show();
	w.resize(140,300);
	w.move(500,400);
	label.move(50,100);

	btn.setGeometry(50, 150, 50, 50);
	QObject::connect(&btn, SIGNAL(clicked()), &w, SLOT(close()));

	
	return a.exec();
}
